package com.cn.serverline.lineicp.produce.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 异常上报表
 * </p>
 *
 * @author 王凯炫
 * @since 2024-08-22
 */
@Data
public class TeExceptionSecalationAddDto {
    @ApiModelProperty(value = "生产执行ID")
    @NotNull(message = "生产执行ID不能为空")
    private Long processDescriptionId;

    @ApiModelProperty(value = "异常类型ID")
    @NotNull(message = "异常类型ID不能为空")
    private Long exceptionId;

    @ApiModelProperty(value = "工艺阶段(0部装，1总装)")
    @NotNull(message = "工艺阶段不能为空(0部装，1总装)")
    private Long operationStage;

    @ApiModelProperty(value = "异常详情ID")
    @NotEmpty(message = "异常详情ID不能为空")
    private List<Long> exeptionDetailsId;

    @ApiModelProperty(value = "任务ID")
    @NotNull(message = "任务ID不能为空")
    private Long taskId;

    @ApiModelProperty(value = "操作人名字")
    @NotNull(message = "操作人名字不能为空")
    private String userName;

    @ApiModelProperty(value = "操作人ID")
    @NotNull(message = "操作人ID不能为空")
    private Long userId;


}
